package com.jzo2o.market.controller.consumer;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.common.model.Result;
import com.jzo2o.market.model.dto.request.ActivityQueryForPageReqDTO;
import com.jzo2o.market.model.dto.request.ActivitySaveReqDTO;
import com.jzo2o.market.model.dto.response.ActivityInfoResDTO;
import com.jzo2o.market.model.dto.response.SeizeCouponInfoResDTO;
import com.jzo2o.market.service.IActivityService;
import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Validated
@RestController("consumerActivityController")
@RequestMapping("/consumer/activity")
@Api(tags = "运营端 - 区域配置相关接口")
public class ActivityController {

    @Autowired
    private IActivityService activityService;


    //活动查询，根据页面传递的状态，疯抢中-查询进行中的活动，即将开始-查询待进行，时间不足一个月的活动
    @GetMapping("/list")
    public List<SeizeCouponInfoResDTO> queryForPage(Integer tabType){
        return activityService.queryForPage(tabType);
    }

}
